//
//  NewTableHeaderCVCell.m
//  Mtime
//
//  Created by Mac on 15/8/4.
//  Copyright (c) 2015年 wxk. All rights reserved.
//

#import "NewTableHeaderCVCell.h"

@implementation NewTableHeaderCVCell

- (void)awakeFromNib {
    
}

- (void)setModel:(NewMovieModel *)model {

    _model = model;
    
    _time.text = model.releaseDate;
    
    _title.text = model.title;
    
    _type.text = model.type;
    
    [_imageV setImageWithURL:[NSURL URLWithString:model.image]];
    
    _average.text = model.director;
    
    _star.text = [NSString stringWithFormat:@"%@,%@",model.actor1,model.actor2];
    
    NSMutableAttributedString *mstr = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@" 有%@人在期待上映",model.wantedCount]];
    
    [mstr addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(2, [model.wantedCount stringValue].length)];
    
    _count.attributedText = mstr;

}

@end
